package com.czk.pojo;

import com.czk.anotation.Desensitization;
import com.czk.anotation.IdReplace;
import com.czk.desensitization.DesensitizationStrategy;
import com.czk.desensitization.practice.IdReplaceStrategy;
import lombok.*;

/**
 * @Author:ChenZhangKun
 * @Date: 2021/4/18 13:56
 */
@Getter
@Setter
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class User {
    // id脱敏策略
    @IdReplace(strategy = IdReplaceStrategy.ID_REPLACE_STRATEGY)
    private Integer id;
    // 按名称脱敏策略进行脱敏
    @Desensitization(strategy = DesensitizationStrategy.USERNAME)
    private String name;
    // 使用密码脱敏策略
    @Desensitization(strategy = DesensitizationStrategy.PASSWORD)
    private String password;
}
